﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DevFramework.Business.Abstract;
using DevFramework.MvcUI.Models.UserModels;

namespace DevFramework.MvcUI.Controllers
{
    public class UserController : Controller
    {
        private readonly IUserService _userService;

        public UserController(IUserService userService)
        {
            _userService = userService;
        }

        public ActionResult Index()
        {
            var userIndexViewModel = new UserIndexViewModel()
            {
                Users = _userService.GetAll()
            };


            return View(userIndexViewModel);
        }
	}
}